<?php
$imgLink = '/'.Yii::app()->controller->module->image["uri"]."thumb_".$data->image;
$imgPath = Yii::getPathOfAlias('webroot').$imgLink;
$imgLink = (!empty($data->image) && file_exists($imgPath))?$imgLink:Yii::app()->controller->module->image["url"]."no-image.jpg";
?>
<div class="article">
	<div class="img_pro"><a class="img_pro" href="<?php echo Yii::app()->createUrl('/events/view/'.$data->alias);?>"><img src="<?php echo $imgLink?>" width="140" alt="image" class="fl" /></a></div>
	<div class="post_content">
		<h3><a class="img_pro" href="<?php echo Yii::app()->createUrl('/events/view/'.$data->alias);?>"><span><?php echo CHtml::encode($data->title)?></span></a></h3>
		
		<p><i>
		<?php echo CHtml::encode(strip_tags($data->description));?>
		</i></p>
		<p class="spec"><a href="<?php echo Yii::app()->createUrl('/events/view/'.$data->alias);?>" class="pin_to right">Xem tiếp</a></p>
	</div>
	<div class="clr"></div>
</div>
